﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class PhieuMuonServices
    {

        public static int LayMaPhieuMax()
        {
            int maphieu = 0;
            try
            {
                PhieuMuonRepository pmRepo = new PhieuMuonRepository();
                maphieu = pmRepo.LayMaPhieuMuonMax();
            }
            catch (System.Exception)
            {
            }
            return maphieu;
        }

        public static DataTable ThongKeTinhHinhMuonSachTheoTheLoai()
        {
            DataTable thongKe = new DataTable();
            PhieuMuonRepository phieuMuonRep = new PhieuMuonRepository();
            thongKe = phieuMuonRep.ThongKeTinhHinhMuonSachTheoTheLoai();
            return thongKe;
        }
    }
}
